package com.yikome.shop.entity;

import java.math.BigDecimal;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "s_shop")
public class Shop extends BaseEntity{

	private static final long serialVersionUID = 1930410418606284543L;
	
	private String logo ; 
	
	private String name ; 
	
	private String location ; 
	
	private String prefix ; 
	
	private String currency ; 
	
	private String currencySymbol ; 
	
	private BigDecimal exchangeRate  = BigDecimal.ONE; 
	
	private BigDecimal basicPrice ; 
	
	private BigDecimal freight ; 
	
	private String comments ; 
	
	private String country ; 
	
	
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT" , nullable=true)
	private String aboutUs ; //关于我们
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT" , nullable=true)
	private String privacyPolicy ;  //隐私条款
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT" , nullable=true)
	private String exchangePolicy ;  //退换货政策
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT" , nullable=true)
	private String problems ;  //常见问题
	
	
	private String fbPiexId ;
	private String fbMessageId ;

	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT")
	private String addressBase ;  //地址库
	
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition="TEXT")
	private String languageBase ;  //语言库
}
